<?php
class WPaymentSuccess extends UWidgetWorklet
{
	public function accessRules()
	{
		return array(
			array('deny', 'users'=>array('?'))
		);
	}
	
	public function taskConfig()
	{
		wm()->get('payment.cart')->empty();
		parent::taskConfig();
	}
	
	public function taskRenderOutput()
	{
		$this->render('success');
	}
}